<template>
	<el-card shadow="never" header="近7天操作记录">
		<scTable ref="table" :apiObj="apiObj" height="auto" paginationLayout="total, prev, pager, next" hideDo>
			<sc-table-column label="序号" prop="id"></sc-table-column>
			<sc-table-column label="操作" prop="action" min-width="150"></sc-table-column>
			<sc-table-column label="管理员" prop="admin_name" min-width="150"></sc-table-column>
			<sc-table-column label="管理员ID" prop="admin_id" min-width="80"></sc-table-column>
			<sc-table-column label="访问链接" prop="url" min-width="250"></sc-table-column>
			<sc-table-column label="访问方式" prop="type" min-width="100"></sc-table-column>
			<sc-table-column label="来源IP" prop="ip" min-width="100"></sc-table-column>
			<sc-table-column label="结果" prop="code" min-width="100">
				<el-tag type="success">成功</el-tag>
			</sc-table-column>
			<sc-table-column label="操作时间" prop="create_time" min-width="150"></sc-table-column>

		</scTable>
	</el-card>
</template>

<script>
	export default {
		data() {
			return {
				apiObj: this.$API.admin.log.lists
			}
		},
	}
</script>

<style>
</style>
